/*
 * Lenovo Group
 * Copyright (c) 2015-2016 All Rights Reserved.
 * Project Name: lmrp-android app
 * Create Time: 16-2-16 下午6:43
 */

package com.lenovo.mso2o.ui.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.lenovo.framework.base.ActionBarInterface;
import com.lenovo.framework.base.InjectableFragment;
import com.lenovo.mso2o.R;
import com.lenovo.mso2o.biz.AccountManagerImpl;

import butterknife.Bind;
import butterknife.OnClick;

/**
 * Created by lit on 2015/11/16.
 */
public class ChangePassSucessFragment extends InjectableFragment implements ActionBarInterface {
    @Bind(R.id.over)Button OverBtn;
    @OnClick(R.id.over)
    void finishClick(){
        AccountManagerImpl.instance.reLogin();
    }
    public ChangePassSucessFragment() {
        // Required empty public constructor
    }
    public static Fragment newInstance(Context context) {
        ChangePassSucessFragment fragment = new ChangePassSucessFragment();
        Bundle args = new Bundle();
        fragment.setArguments(args);
        return fragment;
    }
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = super.onCreateView(inflater, container, savedInstanceState);
        return view;
    }
    @Override
    public int provideContentRes() {
        return R.layout.activity_changepass_sucess;
    }

    @Override
    protected void onFragmentInVisible(Bundle savedInstanceState) {

    }

    @Override
    protected void onFragmentVisible(Bundle savedInstanceState) {

    }

    @Override
    public int getActionBarRightResourceId() {
        return 0;
    }

    @Override
    public int getActionBarRight2ResourceId() {
        return 0;
    }

    @Override
    public void onActionBarRight2Click() {

    }

    @Override
    public void onActionBarRightClick() {

    }

    @Override
    public boolean onBackPressed() {
        return false;
    }
}
